#ifndef __HAL_UART_H__
#define	__HAL_UART_H__

#include "uart1.h"
#include "uart2.h"

enum {
    COM1 = 0,
    COM2 = 1
};

void hal_uart_init(uint8_t port, uint32_t baudrate);
uint16_t hal_uart_write(uint8_t port, uint8_t *pdata, uint16_t len);


#endif
